#!/bin/sh
cd /media/Wang/CS/Code/编译原理/DecafPA1/Framework/decaf_PA1/
ant
cd /media/Wang/CS/Code/编译原理/DecafPA1/Framework/decaf_PA1/TestCases/S1
mv /media/Wang/CS/Code/编译原理/DecafPA1/Framework/decaf_PA1/result/decaf.jar decaf.jar
for i in `ls *.decaf`;
do
echo  "${i%.*}.result"
java -jar decaf.jar -l 0 $i > output/${i%.*}.result;
done 
